package com.ruoyi.sms.common;

import com.ruoyi.sms.domain.Channel;
import com.ruoyi.sms.domain.ServiceType;

import java.io.Serializable;

/**
 * Treeselect树结构实体类
 *
 * @author ruoyi
 */
public class TreeSelect implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 节点ID
     */
    private Long id;

    /**
     * 节点名称
     */
    private String label;

    public TreeSelect() {

    }


    public TreeSelect(Channel obj) {
        this.id = obj.getId();
        this.label = obj.getName();
    }


    public TreeSelect(ServiceType obj) {
        this.id = obj.getId();
        this.label = obj.getName();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
